def stair(n):
    if n == 0:
        return 0
    elif n == 1:
        return 1
    elif n == 2:
        return 2
    return stair(n - 1) + stair(n - 2)